def A(x):
    a=(x*(x+1))//2
    return a


def f(m,n):
    b=A(n)-A(m)
    print(b)
    return b


f(2,20)